﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MovieRental.XmlDataProviderCore
{
    internal class TypeEqualityComparer : IEqualityComparer<Type>
    {
        public bool Equals(Type x, Type y)
        {
            return x.AssemblyQualifiedName.Equals(y.AssemblyQualifiedName);
        }

        public int GetHashCode(Type obj)
        {
            return obj.AssemblyQualifiedName.GetHashCode();
        }
    }
}
